/**
 * @Author: 陈瑞鹏
 * @Date:   2023-01-07 09:50:00
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2023-02-01 10:59:01
 */
import mongoose from "mongoose";

const Schema = mongoose.Schema;
const GBagSchema: mongoose.Schema = new Schema({
  roleId: { type: Number, display: "角色id", index: true },
  id: { type: Number, display: "道具id" },
  time: { type: Number, display: "道具使用次数", default: 0 },
  maxTime: { type: Number, display: "道具最大使用次数" },
  cost: { type: Number, display: "修补花费" },
}).index({ roleId: 1 });

const GBag = mongoose.model('GBag', GBagSchema);
export default GBag;